Ricky had "d" dollars . After paying a bill of $12 he had $7 left . How many dollars did he have at first?​