A vessel completely filled with water has holes A and B at depths \( h \) and \( 3h \) from the top, respectively. Hole A is a square of side \( L \), and B is a circle of radius \( r \). The water flowing out per second from both the holes is the same. Then \( L \) is equal to: