It is not clear what you mean. That's why people are giving you 2 different answers.

IF you mean:

what fraction of 2/7 is 1/4 you do

x(2/7) = 1/4

/(2/7) /(2/7)

x = 1/4(7/2) = 7/8. ANSWER 1

IF you mean:

what is 2/7 of 1/4 you do

2/7(1/4) = 2/14 = 1/7. ANSWER 2

"What fraction of 2/7 IS 1/4." instead of "What fraction of 2/7 OF 1/4."

(which doesn't make a lot of sense.)

So I translated

"What fraction" to x

"of" to multiply

"is" to =

and got x times 2/7 = 1/4

or. x(2/7) = 1/4

That is how one of the other people did it.

The other way I did it was your way.