combine tables and equations