how to solve equations with subscripts