Number of toffees I gave to my friends = 4 × 4 =16
After giving the toffees,
Number of toffees left with me = 3
Total number of toffees with me = Number of toffees given to friends + Number of toffees left with me
= 16 + 3 = 19
So,
Total number of toffees I had = 19