Identifying side lengths that give right triangles