113-47 = 66 female sheep
66-47 = 19
19 more female sheep than male sheep
3.6/12=0.3
each pen costs 0.3 cents
By the table, it seems to be that f = 1/2x