A pineapple costs Rs 7 each and a watermelon costs Rs. 5 each. If I spend Rs 38 on total what is the number of pineapple I purchased?
Choose the correct choice from the following answers:
A) 7
B) 6
C) 5
D) 2
E) 3
Explanation:   The equation for this problem can be made as:   5x + 7y =38   Where x is the number of watermelons and y is the number of pineapples.   Now test for 2, 3 and 4:   For y = 2   5x + 14 =38   x is not an integer   For y = 3   5x = 17   X not an integer   For y =4   X = 2   So 4 pineapples and 2 watermelons can be bought by 38 Rs.   ANSWER:2
<result>D</result>
A pineapple costs Rs 7 each and a watermelon costs Rs. 5 each. If I spend Rs 38 on total what is the number of pineapple I purchased?