Duration

In 3/4 time, how many beats does the above figure get?
2   3   4   6

In 6/8 time, how many beats does the above figure get?
2   3   4   6