A pineapple costs Rs. 7 each a watermelon cost Rs. 5 each Z spends Rs. 38 on these fruits, the number of pineapple purchased:

4

5

3

2