In acute triangle ABC, AC = 14 and the length of the alttiude from B is 12. A square has two of its vertices on AC, and its other two vertices on AB and BC, respectively. Find the side length of this square.