Divide total candy by pieces per friend:
F = 36 / 9
F = 4
The reciprocal is just the fraction flipped over. 7/6 flipped is 6/7.