Magic triangle to rearrange equations