Given the task definition and input, reply with output. The task is to generate the correct answer for a given math problem.

Problem: a retailer bought a machine at a wholesale price of $ 90 and later on sold it after a 10 % discount of the retail price . if the retailer made a profit equivalent to 20 % of the whole price , what is the retail price r of the machine ?
120