Solves the tricky triangle puzzle