A triangle is formed by first plotting a point at (3, 4) on the coordinate plane. The second point is a reflection of the first across the x-axis. The third point is a reflection of the first point across both axes. If the distance between the first point and the third point 10 units, what is the perimeter of the triangle formed?