You may have thought that the notation meant that you should multiply the product of f and g by x, but it does not. The correct interpretation of this notation is:

Use the distributive property.