for the first problem, we can consider it as Projection:

find the distance of a point and a given subspace in Hilbert space.

we can do it by using the Projection Theorem in Hilbert space.

for the second problem, Since is not a hilbert space, we can't apply the theorem.

Is There any other way to solve it?

auguement on a,b,c?