6x+2+7x-1

To write 6x+2 as a fraction with a common denominator, multiply by x-1x-1.

6x+2⋅x-1x-1+7x-1

To write 7x-1 as a fraction with a common denominator, multiply by x+2x+2.

6x+2⋅x-1x-1+7x-1⋅x+2x+2

Multiply 6x+2 and x-1x-1.

6(x-1)(x+2)(x-1)+7x-1⋅x+2x+2

Multiply 7x-1 and x+2x+2.

6(x-1)(x+2)(x-1)+7(x+2)(x-1)(x+2)

Reorder the factors of (x-1)(x+2).

6(x-1)(x+2)(x-1)+7(x+2)(x+2)(x-1)

6(x-1)(x+2)(x-1)+7(x+2)(x+2)(x-1)

Combine the numerators over the common denominator.

6(x-1)+7(x+2)(x+2)(x-1)

Apply the distributive property.

6x+6⋅-1+7(x+2)(x+2)(x-1)

Multiply 6 by -1.

6x-6+7(x+2)(x+2)(x-1)

Apply the distributive property.

6x-6+7x+7⋅2(x+2)(x-1)

Multiply 7 by 2.

6x-6+7x+14(x+2)(x-1)

Add 6x and 7x.

13x-6+14(x+2)(x-1)

Add -6 and 14.

13x+8(x+2)(x-1)

13x+8(x+2)(x-1)

Simplify 6/(x+2)+7/(x-1)