Factor variable expressions using the distributive property