A shopkeeper bought 2 shirts for $x, sold one shirt at the profit of 20%, and the other at the loss of 12%. If the selling price of both the shirts is $150 each, what was the cost of each shirt?
a) $120, $180
b) $125, $175
c) $130, $170
d) $135, $165