DSolve[{Derivative[1][x][t] == a*y[t], Derivative[1][y][t] == b*x[t]},{x[t], y[t]},t]