You had a certain number of chocolates. (You don't know the number of chocolates) If you receive the same number of chocolates from your friend and another friend gives you thrice the number of chocolates you initially had, which of the following can represent the number of chocolates you have in all now ?
5x
You can take any variable to represent the number of chocolates you had. Consider 'x' to be the number of chocolates you initially had.
If you receive the same number of chocolates from your friend, you will now have '2x' chocolates: twice the number of chocolates you had initially.
Since another friend gives you thrice the number you initially had, he's given you '3x' chocolates.
Hence, the total number of chocolates you have now will be '2x+3x=5x'.