On a coordinate plane, a triangle is located at (3, 4), and a square is located at (10, 4). What is the distance between the square and triangle?