If B × 6 has to end with B, then B can be 2, 4, 8 or 6. But with B as 2 and 6, the above condition is not satisfied to arrive at a value for A. If B = 4, then A has to be 7 to give the product as 444. If we consider B to be 8, then A has to be a two digit number to give the product as 888. Hence, B = 4 and A = 7.