Roger gets $40 per day as wages and $4.50 as commission for every pair of shoes he sells in a day. His daily earnings goal is $112.

Write an equation to determine how many pairs of shoes, p, Roger must sell in a day to meet his daily earnings goal.