A painting company charges P100 for a house plus P10 for each hour. If the cost to paint a house is P225, how many hours did it take? Show your work.