Twice the sum of 5 consecutive odd numbers and thrice the sum of 4 consecutive even numbers is 178. Thrice the sum of 5 consecutive odd numbers and twice the sum of 4 consecutive even numbers is 177. Find the smallest even number.