Hello, I need help to write formally the answer to the following problem

Define a measure on (the Borel subsets of ) by

a. let . Find

I did a graph, and I think this should be 1

b. let . Find

Same deal as above, I did a graph and I think it has to be 1/3

If I split

into

and

Both and are -finite measures, also is the Lebesgue measure restricted to ?

Am I on the right track?

Thanks in advance,