Problem Rafael has S/987 between bills of S/50, 5/20 and 5/10 and coins of S/5 and 5/1. If you have 27 S/ 20 bills; 13 S/ 10 bills; 5 S/ 50 bills and 7 S/ 1 coins, how many S/ 5 coins do you have?​

Let's first calculate the total amount Rafael has in each type of bill/coin:

- 27 S/20 bills = 27 * 20 = S/540
- 13 S/10 bills = 13 * 10 = S/130
- 5 S/50 bills = 5 * 50 = S/250
- 7 S/1 coins = S/7

Total amount in bills/coins = S/540 + S/130 + S/250 + S/7 = S/927

Therefore, Rafael has S/987 - S/927 = S/60 in S/5 coins.

Since each S/5 coin is worth S/5, the number of S/5 coins Rafael has is:

Number of S/5 coins = S/60 ÷ S/5 = 12

Rafael has 12 S/5 coins.