let x = speed in still water, and y = speed of current
then x + y = 15, and x - y = 12
add the two equations to get 2x = 27
solving, x = 13.5
then 13.5 + y = 15; so y = 1.5
then 13.5 - y = 12
so, the speed in still water is 13.5 knots, and the speed of the current is 1.5 knots