已知集合M={a,b},N={1,3a},且M=N,求a与b的值