combine graph and equation