using algebra