In AABC, AB=8, BC=10, and AC=12. Let M, N, and K be the midpoints of the sides of AABC. Find length of each side of AMNK.​