University College Dublin A.F.C. was founded in 1895 as the Catholic University Medical School Football Club. They began playing regular games the following year. A First XI played College games against other Universities and a Second XI entered outside competitions. The club was founder members of the Leinster Junior League in 1896 and reached the semi-finals of the Leinster Senior Cup (association football) in 1897. The club became University College Dublin when the new University annexed the Medical school in 1908. UCD won the inaugural Intervarsities competition, the Collingwood Cup, in 1914 and added the Irish Intermediate Cup the following year beating Portadown 2–1 in a replayed final. When the Irish Free State was formed in 1921 and the new Football Association of Ireland was formed, UCD participated in the Preliminary round against fellow non-League team Shamrock Rovers in November 1921. The game took place in Windy Arbour and the Hoops won 6–2. UCD were invited to join the League of Ireland in 1922, but had to turn it down on the basis of not being able to field a team in the League of Ireland Shield in September as the Academic year didnt commence until October. In 1945 they won the FAI Intermediate Cup when UCD beat fellow future League of Ireland members Cobh Ramblers 4–2 in the final. UCD appeared in the FAI Cup in the 1930s, 1940s and 1950s, their final appearance as a non-League outfit coming in 1957 when Cork Athletic beat UCD 4–2 in the Mardyke.
Question: Which team did Dundalk defeat two years in a row to take the League of Ireland Cup?
Answer: Cork City F.C.