Can someone show me how to do this question? Thanks.

Ralph works part-time for a bike repair shop. He earns $2 for each tire he installs and $5 for each gear mechanism he assembles. Last week he did a total of 40 installations and assemblies and earned $110. How many of each type of installation did he complete?