How to add rational equations that require factoring