In isosceles triangle ABC, B is the vertex. The measure of angle B can be represented as (4x-2). The measure of angle A can be represented as (8x+1). Find the measure of all three angles of the triangle?