x*2/3=500
2x=1500
x=750

30*1/10=3
30-3=27 ☺️