let the girls' initial pocket money be whole(1)
14 of 1 = books, 13 of 1 = dress
fraction of her money left = 1 - 14 - 13
= 512