In an office event, 5 managers shook hands among themselves, and employees shook hands among themselves. The ratio of managers to employees can be expressed as , where and are coprime. If the total number of handshakes is 2026 then determine the value of .