Add/simply

5/wx² + 2/w²x

Treat as two fractions, and the common denominator is w²x², so

5/wx² + 2/w²x
=(5w+2x)/(w²x²)